<?php
class Books{
	private $title;
	private $description;
	private $language;
	private $coverpath;
	
	//constructor
	function __construct($title,$description,$language,$coverpath){
		$this->title=$title;
		$this->description=$description;
		$this->language=$language;
		$this->coverpath=$coverpath;
	}
	
	//others functions
	
	//getters for username,password and last_login
	public function __get($field){
		if (property_exists($this, $field)){
			return $this->$field;
		}
		else return NULL;
	}
}
?>